home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
cxref.exe
/
CXREF.DOC
< prev
next >
Wrap
Text File
|
1992-02-24
|
20KB
|
537 lines
C xref - C language cross-reference utility. v2.0
C xref
The C language cross reference utility.
(c) 1992 by David Archibald.
C xref - C language cross-reference utility. v2.0
Table of Contents
Introduction:
Registration information............... 101
System requirements.................... 102
What C xref does....................... 103
Program output:
Global variables and constants......... 201
Summary list of functions.............. 202
Verbose list of functions.............. 203
Function tree.......................... 204
Running C xref:
The command line syntax................ 301
The module names....................... 302
The -x command......................... 303
The -t command......................... 304
The -s command......................... 305
The -w command......................... 306
The -l command......................... 307
The -i command......................... 308
The -n command......................... 309
Command line examples.................. 310
The reserved word file: RES_WORD.TXT........ 401
What C xref ignores......................... 501
C xref - C language cross-reference utility. v2.0
101 Registration information.
C xref is a Shareware program, and copies of this program
and it's documentation may be freely distributed.
Note: C xref and this document are copyrighted and may not
be modified in any manner.
Individual copies may be licensed for $20. (Site licenses
are available for commercial use. Please write for details.)
After registering you will be sent the latest version of C
xref, and, as they become available, any future updates.
C xref - C language cross-reference utility. v2.0
Order Form
Registration fee Fee $ 20.00
(Michigan residents please add 4% sales tax) Tax .80
Total $ _______
Name:___________________________________________________
Company:________________________________________________
Address:________________________________________________
:________________________________________________
:________________________________________________
Disk size:
5 1/4:_____
3 1/2:_____
Send to:
DA Software
3717 Aldon Lane
Flint, MI 48506
(If you have any suggestions or comments about C xref, please
include them.)
Comments:
C xref - C language cross-reference utility. v2.0
102 System requirements.
Config.sys file:
The "file" statement in your config.sys file must equal
at least 20. If it doesn't, then using EDLIN, or
another ASCII text editor, change the "file" statement
in your config.sys file so that it reads "file=20".
Memory limits:
There is no minimum memory, but the number of modules
you can cross-reference is dependent on the amount of
memory you have. If C xref runs out of memory it will
output an error message, and terminate.
103 What it does.
C xref is a cross-reference utility program for the C
programming language. It will read any number of your C text
modules and send the following to standard output:
o A list of the module's global variables and constants,
along with the line numbers they appear on.
o A summary listing of module's functions.
o A verbose list of all the module's functions that
includes: the name of the module it originates in, line
of origin, users, callers, and what local and global
variables appear in the function.
o A tree that displays all of the functions calling
hierarchy.
Note: Remember, you can use DOS redirection to send the
output else where; i.e. >LPT1.
C xref - C language cross-reference utility. v2.0
201 Global variables and constants.
C xref assumes that anything declared outside a function's
boundaries (from the function name to the function's closing
brace) is a global variable or constant.
The global variable and constant cross-reference has the
following format:
variable name [type]
{module name} which line numbers in this module the
variable appears on.
Sample output:
char_pnt [char]
{example.c } 1
{explfile.c } 10 11 16 28 35 42
cnt [int]
{example.c } 4 11 32
{explfile.c } 8 14
202 Summary list of functions.
The summary list has the following format:
{module name} : line-of-origin : function name() [type]
Note: a line-of-origin of [NONE] indicates that the function was
not in any of the modules cross-referenced.
Sample output:
{explfile.c } : 32 : is_it_a_comma() [int]
{example.c } : 7 : main() [void]
{explfile.c } : 39 : not_comma() [char]
{example.c } : 25 : open_file() [FILE]
C xref - C language cross-reference utility. v2.0
203 Verbose list of functions.
The verbose list of functions has the following format:
function name [type] : {module name} : line-of-origin
USERS:
{module name} the line numbers in this module that
reference this function.
CALLS:
{module name} function name() {module} func1()
LOCAL VARIABLES:
variable name [type]. the line numbers in this function
it appears on.
GLOBAL VARIABLES:
variable name [type]. the line numbers in this function
it appears on.
As with the summary listing, a line-of-origin of [NONE]
indicates that a function was referenced, but did not appear
in any of the modules cross-referenced.
USERS are the line numbers in a module that call this
function.
CALLS are other functions that this function references.
LOCAL VARIABLES are any variable or constant that falls
between a function's name and it's closing brace.
Note: As with your C compiler, whe